Skip to content

Introduce getPaymentUrlFromToken#3

Open
mehdibo wants to merge 1 commit intolynvi:masterfrom
mehdibo:improve-payment-url
Open

Introduce getPaymentUrlFromToken#3
mehdibo wants to merge 1 commit intolynvi:masterfrom
mehdibo:improve-payment-url

Conversation

@mehdibo
Copy link

@mehdibo mehdibo commented Mar 10, 2023

  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    This PR will make it easier to get a payment token and a payment URL for the same payment order.

  • What is the current behavior? (You can also link to an open issue here)
    The current behavior makes it impossible to generate a payment URL and get a token simultaneously without re-implementing the URL generation part.
    This doesn't make it maintainable if YCP decides to change something in how URLs are composed.

  • What is the new behavior (if this is a feature change)?
    The token and URL generation are separated into different methods while keeping BC and introducing a new method that can generate the Payment URL from the fetched token

  • Other information:

@mehdibo
Copy link
Author

mehdibo commented Mar 12, 2023

Unfortunately, I couldn't wait until this was merged, so I made another one.

If you are having the same issue check the alternative version here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant